package com.sinog.biz.service.business.impl;

import com.sinog.biz.mapper.havexml.other.HomeStatisticalMapper;
import com.sinog.biz.service.business.HomeStatisticalService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @desc 首页 - 首页统计分析 - HomeStatisticalServiceImpl
 * @author zrl
 * @date -
 */
@Service
public class HomeStatisticalServiceImpl implements HomeStatisticalService {

    @Resource
    private HomeStatisticalMapper homeStatisticalMapper;

    /**
     * 机构
     * @param account account
     * @return Map<String,String>
     */
    @Override
    public Map<String,String> getJggk(String account) {
        return homeStatisticalMapper.getJggk(account);
    }

    /**
     * 司法厅
     * @param code code
     * @return Map<String,String>
     */
    @Override
    public Map<String,String> getJgCode(String code) {
        return homeStatisticalMapper.getJgCode(code);
    }

    /**
     * 地市司法局和区县司法局
     * @param code code
     * @return Map<String,String>
     */
    @Override
    public Map<String,String> getJgxjCode(String code) {
        return homeStatisticalMapper.getJgxjCode(code);
    }

    /**
     * 首页统计 - 首页左侧 机构人员信息 - 主管领导
     * @param departId departId
     * @param level level
     * @return List<HashMap < String,Object>>
     */
    @Override
    public List<HashMap<String,Object>> zgldList(String departId,String level) {
        return homeStatisticalMapper.zgldList(departId,level);
    }

    /**
     * 首页左侧 机构人员信息 - 工作人员
     * @param departId departId
     * @param level level
     * @return List<HashMap < String,Object>>
     */
    @Override
    public List<HashMap<String,Object>> gzryList(String departId,String level) {
        return homeStatisticalMapper.gzryList(departId,level);
    }
}